<?php
include 'connect.php';

    if(isset($_POST['delete_p_id'])){

        $delete_this = $_POST['delete_p_id'];  
        $sql = "DELETE FROM properties WHERE properties.id = ?";
        $stmt = $conn->prepare($sql);
        $stmt->bind_param("i",$delete_this);
        if ($stmt->execute()){
            echo 1;
        } else{
            echo 0;
        }
    }
?>